package com.example.lianjuan.Utils;


import android.widget.Toast;

import com.example.lianjuan.Base.BaseApplication;


/**
 * Toast工具类
 *
 * @author 81067
 */
public class ToastUtil {

    private static Toast sToast = null;

    public static void showToast(String tips) {
        if (sToast == null) {
            sToast = Toast.makeText(BaseApplication.getContext(), tips, Toast.LENGTH_LONG);
        } else {
            sToast.setText(tips);
        }
        sToast.show();
    }
}
